package com.zy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserSchedule {

    /**
     * 用户日程表id
     * 用户id
     * 日程id
     * 用户日程状态(0 待定 1确认 -1 请假)
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private Integer scheduleId;

    public UserSchedule(Integer userId, Integer scheduleId) {
        this.userId = userId;
        this.scheduleId = scheduleId;
    }

    private Integer userState;
    private String remarks;
}
